<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mercadoria-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'DESCRICAO_MERCADORIA'); ?>
		<?php echo $form->textField($model,'DESCRICAO_MERCADORIA',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'DESCRICAO_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UNIDADE_MERCADORIA'); ?>
		<?php echo $form->textField($model,'UNIDADE_MERCADORIA',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'UNIDADE_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'QUANTIDADE_MERCADORIA'); ?>
		<?php echo $form->textField($model,'QUANTIDADE_MERCADORIA'); ?>
		<?php echo $form->error($model,'QUANTIDADE_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ESTADO_MERCADORIA'); ?>
		<?php echo $form->textField($model,'ESTADO_MERCADORIA',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'ESTADO_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'VALORUNI_MERCADORIA'); ?>
		<?php echo $form->textField($model,'VALORUNI_MERCADORIA'); ?>
		<?php echo $form->error($model,'VALORUNI_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'VALIDADE_MERCADORIA'); ?>
		<?php echo $form->textField($model,'VALIDADE_MERCADORIA'); ?>
		<?php echo $form->error($model,'VALIDADE_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DT_ENTRADA_MERCADORIA'); ?>
		<?php echo $form->textField($model,'DT_ENTRADA_MERCADORIA'); ?>
		<?php echo $form->error($model,'DT_ENTRADA_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DT_SAIDA_MERCADORIA'); ?>
		<?php echo $form->textField($model,'DT_SAIDA_MERCADORIA'); ?>
		<?php echo $form->error($model,'DT_SAIDA_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DT_ENVIO_MERCADORIA'); ?>
		<?php echo $form->textField($model,'DT_ENVIO_MERCADORIA'); ?>
		<?php echo $form->error($model,'DT_ENVIO_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PALLETS_MERCADORIA'); ?>
		<?php echo $form->textField($model,'PALLETS_MERCADORIA'); ?>
		<?php echo $form->error($model,'PALLETS_MERCADORIA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UNIDADE_ARMAZENAGEM'); ?>
		<?php echo $form->textField($model,'UNIDADE_ARMAZENAGEM',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'UNIDADE_ARMAZENAGEM'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TB_SERVICO_ID_SERVICO'); ?>
		<?php echo $form->textField($model,'TB_SERVICO_ID_SERVICO'); ?>
		<?php echo $form->error($model,'TB_SERVICO_ID_SERVICO'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->